-- 开始初始化数据 ;
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- 添加默认菜单
BEGIN;
INSERT INTO cupid.user_menus (id, title, `name`, alias, icon, sort, parent, menu_type, component, `path`, external_link, external_link_address, permission, `method`, no_cache, url, hidden) VALUES (1, '系统管理', 'System', '', null, 0, 0, 1, 'Layout', '/system', 0, '', null, null, 0, null, 0);
INSERT INTO cupid.user_menus (id, title, `name`, alias, icon, sort, parent, menu_type, component, `path`, external_link, external_link_address, permission, `method`, no_cache, url, hidden) VALUES (2, '用户管理', 'SystemUser', '', null, 0, 1, 1, 'system/user/index', '/system/user', 0, '', null, null, 0, null, 0);
INSERT INTO cupid.user_menus (id, title, `name`, alias, icon, sort, parent, menu_type, component, `path`, external_link, external_link_address, permission, `method`, no_cache, url, hidden) VALUES (3, '角色管理', 'SystemRole', '', null, 1, 1, 1, 'system/role/index', '/system/role', 0, '', null, null, 0, null, 0);
INSERT INTO cupid.user_menus (id, title, `name`, alias, icon, sort, parent, menu_type, component, `path`, external_link, external_link_address, permission, `method`, no_cache, url, hidden) VALUES (4, '菜单管理', 'SystemMenu', '', null, 2, 1, 1, 'system/menu/index', '/system/menu', 0, '', null, null, 0, null, 0);
COMMIT;

-- 添加默认用户
BEGIN;
INSERT INTO cupid.user_info (id, password, last_login, username, email, `name`, is_active, is_admin, create_date, update_date) VALUES (1, 'pbkdf2_sha256$216000$YSefGfRat56S$ivOwXEl2bqrxR/7P9qGTz/kjOlhkB9ps8/hJgWXFzSM=', null, 'lanyulei', 'lanyulei@163.com', 'lanyulei', 1, 1, '2021-05-27 12:20:34.623956', '2021-05-27 12:20:34.653965');
COMMIT;
